import { Injectable, NestMiddleware } from '@nestjs/common'
import { log } from 'console'
import { Request,Response,NextFunction } from 'express'
@Injectable()
export class logger implements NestMiddleware{
  use(req:Request,res:Response,next:NextFunction)  {
    
    log('我来了')
    // res.send('你被拦截了')
    next()
  }
}